<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<h1>Trainee Need To Approval</h1>

<form id="form1" name="form1" method="post" action="">
  <label for="password">Input Your Attendance Password Here </label>
  <input type="text" name="password" id="password" />

<br />
Then Click The Button To Take Action<br />
<table width="900" border="1" cellspacing="0" cellpadding="10">
  <tr>
    <th width="41" scope="col">No</th>
    <th width="59" scope="col">Staff</th>
    <th width="114" scope="col">Full Name</th>
    <th width="158" scope="col">Registered On</th>
    <th width="87" scope="col">In Shop</th>
    <th width="104" scope="col">Manager</th>
    <th colspan="2" scope="col">Action</th>
  </tr>
 <?php foreach($this->stList as $k => $v){?> 
  <tr>
    <td><?php echo $k + 1;?></td>
    <td>xxx</td>
    <td><?php echo $v['first_name']." ".$v['last_name']?> </td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td width="75" align="center"><input type="submit" name="btn_pass" id="btn_pass" value="Pass Training" onclick="javascript: return confirm('Are you sure you want to pass the trainning ?')" /></td>
    <td align="center"><input type="submit" name="btn_not_pass" id="btn_not_pass" value="Fail Training" /></td>
  </tr>
 <?php }?> 
</table>
</form>
</body>
</html>
